﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Plumbing;
using YArchitech.Revit;

namespace YArchitech.HVAC
{
	public class ChangeElements
	{
		private IList<XYZ> GetPipePoints()
		{
			IList<XYZ> list = new List<XYZ>();
			if (this.ListConnPipe != null && this.ListConnPipe.Count > 0)
			{
				foreach (Pipe piping in this.ListConnPipe)
				{
					YJKPiping<Pipe> hypiping = new YJKPiping<Pipe>(piping);
					list.Add(hypiping.StartConnector.Origin.Add(hypiping.EndConnector.Origin) / 2.0);
				}
			}
			return list;
		}

		public IList<XYZ> ListPoints
		{
			get
			{
				return this.GetPipePoints();
			}
		}

		public bool BeUperSprinker;

		public bool BeTransation;

		public IList<Pipe> ListConnPipe = new List<Pipe>();

		public List<FamilyInstance> ListFamilyInstance = new List<FamilyInstance>();
	}
}
